<script type="text/javascript" src="/kindeditor/kindeditor.js" charset="utf-8"></script>
<script>
KE.show({
	id : 'content',
	resizeMode : 1
});
</script>
<form method="post">
<input type="hidden" name="method" value="savetech"/>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
	<tr>
		<td colspan="2">
			<input type="submit" value="保存并发布" onclick="javascript:$('#published').val('1');" class="btn">&nbsp;&nbsp;<input type="submit" value="仅保存" class="btn">&nbsp;&nbsp;<input type="button" onclick="javascript:location.href='/management/admin_tech.php'" value="返回" class="btn">
			{{if $errorMsg}}
				{{foreach from=$errorMsg item=item key=key}}
					<br/><font color="red">{{$item}}</font>
				{{/foreach}}
			{{/if}}
		</td>
	</tr>
	<tr>
		<td class="th">教程标题：</td>
		<td class="td">
			<input class="long" type="text" name="title" value="{{$row.title}}">
			<input type="hidden" name="id" value="{{$row.id}}">
			<input type="hidden" name="published" value="0" id="published">
		</td>
	</tr>
	<tr>
		<td class="th">分类：</td>
		<td class="td">
			<select name="cid">
			{{html_options options=$cateArr selected=$row.cid}}
			</select>
		</td>
	</tr>
	<tr>
		<td class="th">关键字：</td>
		<td class="td">
			<input class="long" type="text" name="keywords" value="{{$row.keywords}}">
		</td>
	</tr>
	<tr>
		<td class="th">教程内容：</td>
		<td class="td">
			<textarea name="content" id="content"  style="width:700px;height:500px;visibility:hidden;">{{$row.content}}</textarea>
		</td>
	</tr>
</table>
</form>